package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * TbCorpnote entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_corpnote", catalog = "imcdbserver")
public class TbCorpnote implements java.io.Serializable {

	// Fields

	private TbCorpnoteId id;

	// Constructors

	/** default constructor */
	public TbCorpnote() {
	}

	/** full constructor */
	public TbCorpnote(TbCorpnoteId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id", nullable = false, length = 50)),
			@AttributeOverride(name = "noteDepart", column = @Column(name = "note_depart", length = 100)),
			@AttributeOverride(name = "noteSender", column = @Column(name = "note_sender", nullable = false, length = 50)),
			@AttributeOverride(name = "noteSendtime", column = @Column(name = "note_sendtime", nullable = false, length = 19)),
			@AttributeOverride(name = "noteRecmobile", column = @Column(name = "note_recmobile", nullable = false, length = 30)),
			@AttributeOverride(name = "noteContent", column = @Column(name = "note_content", length = 200)),
			@AttributeOverride(name = "type", column = @Column(name = "type", nullable = false)),
			@AttributeOverride(name = "oper", column = @Column(name = "oper", nullable = false, precision = 22, scale = 0)) })
	public TbCorpnoteId getId() {
		return this.id;
	}

	public void setId(TbCorpnoteId id) {
		this.id = id;
	}

}